<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        console.log('1000天后是星期一')
        const arr = ['二','三','四','五','六','日','一']
        const d = parseInt(prompt('请输入查询的天数'))
        alert(`${d}天后是星期${arr[d % 7]}`)
    </script>
</body>
</html>